import Vue from 'vue'
import Router from 'vue-router'
import Index from '../pages/Index'
import DkpList from '../pages/DkpList'
import RaidList from '../pages/RaidList'
import Welcome from '../pages/Welcome'
import Help from '../pages/Help'
import BackupList from '../pages/BackupList'
import AdminList from '../pages/AdminList'
import AccountList from '../pages/AccountList'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      component: Index,
      children: [{
        path: '',
        name: 'welcome',
        component: Welcome
      },{
        path: 'dkp/list',
        name: 'dkpList',
        component: DkpList
      }, {
        path: 'raid/list',
        name: 'raidList',
        component: RaidList
      }, {
        path: 'backupList',
        name: 'backupList',
        component: BackupList
      }, {
        path: 'adminList',
        name: 'adminList',
        component: AdminList
      }, {
        path: 'accountList',
        name: 'accountList',
        component: AccountList
      }, {
        path: 'help',
        name: 'help',
        component: Help
      }]
    }
  ]
})
